from sqlalchemy import Column, Integer, String, DateTime
from sqlalchemy.ext.declarative import declarative_base

# 建立映射关系
Base = declarative_base()


class PrivateFundManagerClassificationInfo_urls(Base):
    def __init__(self, manager_name, link):
        self.manager_name = manager_name
        self.link = link

    __tablename__ = 'list_urls'  # 设置表名
    id = Column(Integer, primary_key=True)
    manager_name = Column(String(255))  # 私募基金管理人名称
    link = Column(String(255))  # 私募基金管理人名称


def create_table(db):
    # 创建表
    Base.metadata.create_all(db)
